package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 赵赳
 * @CreateTime: 2021/3/5 20:18
 * @Description:
 */
@Mapper
public interface OrderDao {

    /**
     * 添加订单
     * @param order
     */
    void create(Order order);

    /**
     * 修改订单状态
     */
    void update(@Param("userId") Long userId,@Param("status") Integer status);


    Order findById( Long id);

}
